<template>
<div>
  <el-container>
    <!-- 筛选条件-->
    <el-header>
      <el-button type="success" round @click="add()" align="center">新增</el-button>
      <el-button type="primary" round @click="upload()" align="center">上传文件</el-button>
    </el-header>
    <!-- 主表-->
    <el-main>
      <MainTable></MainTable>
    </el-main>
  </el-container>
</div>
</template>

<script>
import MainTable from '@/components/table/post/PostTable'
export default {
  name: 'table',
  components: {
    MainTable
  },
  methods: {
    add () {
      this.$router.push({name: 'edit',
        query: {state: '新增'}
      })
    },
    upload () {
      this.$router.push({name: 'qiniu'})
    }
  }
}
</script>

<style scoped>
</style>
